import request from '@/utils/request'

// 查询物料单位转化表列表
export function listUnitTranfer(query) {
  return request({
    url: '/bom/unitTranfer/list',
    method: 'get',
    params: query
  })
}

// 查询物料单位转化表详细
export function getUnitTranfer(id) {
  return request({
    url: '/bom/unitTranfer/' + id,
    method: 'get'
  })
}

// 新增物料单位转化表
export function addUnitTranfer(data) {
  return request({
    url: '/bom/unitTranfer',
    method: 'post',
    data: data
  })
}

// 修改物料单位转化表
export function updateUnitTranfer(data) {
  return request({
    url: '/bom/unitTranfer',
    method: 'put',
    data: data
  })
}

// 删除物料单位转化表
export function delUnitTranfer(id) {
  return request({
    url: '/bom/unitTranfer/' + id,
    method: 'delete'
  })
}


//bom:base:getRemoteStap
export function getRemoteStap(data) {
  return request({
    url: 'bom/base/getRemoteStap',
    method: 'get',
    params: data,
  })
}
